local s15__qingnang = fk.CreateSkill {
  name = "s15__qingnang",
}

Fk:loadTranslationTable {
  ["s15__qingnang"] = "青囊",
  [":s15__qingnang"] = "出牌阶段限一次,你可弃置一张手牌并令一名角色回复1点体力;若你弃置的牌为红色,则可以再次发动此技能,但不能选择本阶段选择过的角色。",
}

s15__qingnang:addEffect("active", {
  anim_type = "support",
  prompt = "#s15__qingnang-active",
  max_phase_use_time = 6,
  card_filter = function(self, player, to_select, selected)
    return #selected == 0 and table.contains(player:getCardIds("h"), to_select) and not player:prohibitDiscard(to_select)
  end,
  target_filter = function(self, player, to_select, selected)
    return #selected == 0 and to_select:isWounded()
  end,
  target_num = 1,
  card_num = 1,
  on_use = function(self, room, effect)
    local from = effect.from
    local to = effect.tos[1]
    room:throwCard(effect.cards, s15__qingnang.name, from, from)
    if to:isAlive() and to:isWounded() then
      room:recover({
        who = to,
        num = 1,
        recoverBy = from,
        skillName = s15__qingnang.name,
      })
    end
  end,
})
return s15__qingnang
